#include "Test_QWavFile.hpp"
#include "QWavFile.hpp"


void Test_QWavFile::test_1()
{
    QCOMPARE(0, 0);

}

void Test_QWavFile::InstaceCreation()
{
    using namespace AudioCore;
    QWavFile * wavTest = new QWavFile("", 0);
    Q_ASSERT(wavTest != 0);
    delete wavTest;
}

void Test_QWavFile::OpenWrongFile()
{
    using namespace AudioCore;

    QWavFile * wavTest = new QWavFile("", 0);

    Q_CHECK_PTR( wavTest );

    bool result = wavTest -> open( );
    QCOMPARE( result, false );
    delete wavTest;

}

void Test_QWavFile::OpenGoodFile()
{
    using namespace AudioCore;

    QWavFile * wavTest = new QWavFile("E:\\Source\\trunk\\Misc\\Sample\\TRK1-00.wav", 0);

    Q_CHECK_PTR( wavTest );

    bool result = wavTest -> isReady();
    QCOMPARE( result, true );
    delete wavTest;
}


